package com.weather.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
@TableName("temp_humi")
public class TempHumi {

    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     * 温度
     */
    private BigDecimal temperature;

    /**
     * 湿度
     */
    private BigDecimal humidity;

    /**
     * 设备id
     */
    @TableField("sensor_id")
    private String sensorId;

    /**
     * 创建时间
     */
    @TableField("recorded_at")
    private LocalDateTime recordedAt;
}
